﻿using B.S.DataBase.MyProject.Domain.Materials;
using B.S.DataBase.MyProject.ErrorCode;
using MediatR;
using System.ComponentModel.DataAnnotations;

namespace T.E.ERP.Write.API.Applicantions.Command.MaterialsCommand.MaterialsCommand
{
    /// <summary>
    /// 物料分类增加命令
    /// </summary>
    public class MaterialCategoryAddCommand:IRequest<APIResult<object>>
    {

        /// <summary>
        /// 主键 物料分类编号
        /// </summary>
        [Key]
        public int id { get; set; }

        /// <summary>
        /// 上级分类 ID，关联自身表实现层级关系
        /// </summary>
        public int parent_category_id { get; set; }
        /// <summary>
        /// 分类名称
        /// </summary>
        public string title { get; set; }
        /// <summary>
        /// 计量单位编码，关联计量单位动态表
        /// </summary>
        public int unit_of_measurement_id { get; set; }
        /// <summary>
        /// 供应方式编码，关联供应方式动态表
        /// </summary>
        public int supply_method_id { get; set; }
        /// <summary>
        /// 分类状态编码，关联分类状态动态表
        /// </summary>
        public SupplyMethod SupplyMethod { get; set; }
        /// <summary>
        /// 流水号长度
        /// </summary>
        public int serial_number_length { get; set; }



    }



}
